package com.itheima.stock.mapper;

import com.itheima.stock.pojo.SysUser;
import com.itheima.stock.vo.req.UserReqVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 久思
* @description 针对表【sys_user(用户表)】的数据库操作Mapper
* @createDate 2023-09-24 15:22:07
* @Entity com.heima.stock.pojos.SysUser
*/
@Mapper
public interface SysUserMapper {

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    SysUser findByUserName(@Param("username") String username);

    List<SysUser> findUserInfo(UserReqVo vo);

    void insert(SysUser sysUser);

    SysUser finById(Long userId);

    void updateByPrimaryKey(SysUser sysUser);

    void deleteByPrimaryKey(@Param("userId") List<Long> userId);
}
